package com.guodi.map.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodi.map.entity.MapProjectFile;
import com.guodi.map.mapper.MapProjectFileMapper;
import com.guodi.map.service.IMapProjectFileService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述：附件/目录信息表 服务类
 * @作者: 代鹏刚
 * @日期: 2021-01-19
 */
@Service
public class MapProjectFileServiceImpl extends ServiceImpl<MapProjectFileMapper, MapProjectFile> implements IMapProjectFileService {

    @Override
    public List<MapProjectFile> listTreeByEntity(String parentId) {
        return this.baseMapper.listTreeByEntity(parentId);
    }

    @Override
    public List<MapProjectFile> getAllChildrenById(List<String> ids, Integer type) {
        return this.baseMapper.getAllChildrenById(ids, type);
    }

    @Override
    public void deleteByIds(List<String> ids) {
        this.baseMapper.deleteByIds(ids);
    }
}